import request from '../utils/request'

export function login(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data: data
  })
}
export function regiser(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data: data
  })
}
export function getUserInfo(data) {
  return request({
    url: '/user/getUserInfoByToken',
    method: 'get',
    data: data
  })
}
export function logout(data) {
  return request({
    url: '/user/logout',
    method: 'post',
    data: data
  })
}
export function modifyPassword(data) {
  return request({
    url: '/user/modifyPassword',
    method: 'post',
    data: data
  })
}
export function modifyUserInfo(data) {
  return request({
    url: '/user/modifyUser',
    method: 'post',
    data: data
  })
}
